package com.xuecheng.api.content;


import com.xuecheng.api.content.model.dto.CourseBaseDTO;
import com.xuecheng.api.content.model.dto.CourseTeacherDTO;
import com.xuecheng.api.content.model.vo.CourseBaseVO;
import com.xuecheng.api.content.model.vo.CourseTeacherVO;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

import java.util.List;

public interface CourseTeacherApi {

    @ApiOperation(value = "根据课程ID查询课程教师信息")
    @ApiImplicitParam(name = "courseId",value = "课程ID值",required = true,dataType = "Long",paramType = "path",example = "1")
    List<CourseTeacherDTO> queryCourseTeacherbyCourseId(Long courseBaseId);

    //保存课程教师基本信息
    @ApiOperation("保存教师基本信息")
    @ApiImplicitParam(name = "courseTeacherVO",value = "课程教师信息",required = true,dataType = "CourseTeacherVO",paramType = "body")
    CourseTeacherDTO createCourseTeacher(CourseTeacherVO courseTeacherVO);

    //删除教师基本信息
    @ApiOperation("删除教师基本信息")
    @ApiImplicitParams({@ApiImplicitParam(name = "courseTeacherId",value = "课程教师ID",required = true,dataType = "Long",paramType = "path")
            ,@ApiImplicitParam(name = "courseBaseId",value = "课程ID",required = true,dataType = "Long",paramType = "path")})
    void removeCourseTeacher(Long courseBaseId,Long courseTeacherId);

}
